<template>
	<view class="mdx-center-xs">
		<view v-if="list.length>0">
			<view v-for="(item,index) in list" :key="index" class="dis align-items line u-p-t-15"
				style="padding-bottom: 20rpx;">
				<view>
					<view style="font-weight: bold;">{{item.tstation.jname||''}}</view>
					<view class="hui99 margin-top25rpx">{{item.creationtime||''}}</view>
				</view>
				<view style="color: #FF542C; font-size: 32rpx;">-{{item.numbers||'0'}}{{item.types==1?'学习币':'￥'}}</view>
			</view>
		</view>
		<u-divider v-else>暂无数据~</u-divider>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			}
		},
		onLoad() {
			//查询用户岗位交易记录
			this.selectUserPostRecord()
		},
		methods: {
			selectUserPostRecord() {
				this.$http.get('app/PostController/selectUserPostRecord').then(res => {
					if (res.code == 200) {
						this.list = res.data
						console.log(this.list);
					} else {

					}
				})

			},
		}
	}
</script>

<style>

</style>
